<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/help/helpInfo/save}">
        <input type="hidden" name="id" th:if="${helpInfo}" th:value="${helpInfo.id}">
        <input type="hidden" name="typeid" th:value="${param.typeid}">
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-inline" style="width:600px">
                <input class="layui-input" type="text" name="title" placeholder="请输入标题" th:value="${helpInfo?.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">内容</label>
            <div class="layui-input-inline"  style="width:600px">
                 <textarea id="content" style="display: none;" name="content">[[${helpInfo?.content}]]</textarea>           
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="num" placeholder="请输入排序" th:value="${helpInfo?.num}">
            </div>
        </div>
       <!-- <div class="layui-form-item">
            <label class="layui-form-label">类型id</label>
            <div class="layui-input-inline">
                <select class="timo-search-select" name="typeid" mo:dict="HELP_TYPE" mo-selected="${helpInfo?.typeid}" mo-empty="全部"></select>
            </div>
        </div> -->
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
 
</body>
</html>